/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once

#include "底层绘图/S_纹理.h"
#include "底层绘图/底层绘图框架.h"
#include "../引擎枚举数据.h"


//S_纹理*	f_创建纹理(E_绘图API 后端, ivec2 size, E_纹理格式 格式);
//S_结构对象指针 f_创建纹理(ivec3 size, E_纹理格式 格式);

S_纹理* f_fromFile创建纹理(S_设备环境& ctx, S_纹理采样器* sample, std::string path);
S_纹理* f_fromFile创建纹理数组(S_设备环境& ctx, S_纹理采样器* sample, std::vector<std::string> path);

void	f_tex_从文件填充纹理(S_纹理* tex, std::string path, S_结构对象指针 命令缓存);

void	f_tex_保存到文件(S_纹理* tex, std::string path, S_结构对象指针 命令缓存 = nullptr);


void	f_tex_加载图像文件(S_纹理添加列队& path);
void	f_tex_加载图像到GPU(S_纹理添加列队& path, S_结构对象指针 命令缓存);
void	f_tex_从文件填充纹理(S_纹理* tex, std::string path, S_子集绘图命令* 绘图命令);





